package com.koudai.finance.constant;

/**
 * @Description: 系统编码
 * @author: ls
 * @Date: 2020/7/10 14:25
 */
public class SysCode {

    /**
     * redis中微信授权的全局accessToken
     */
    public static final String WX_AUTH_GLOBAL_ACCESS_TOKEN = "wxAuth:globalAccessToken";

    /**
     * redis中微信网页授权的accessToken
     */
    public static final String WX_AUTH_PAGE_REFRESH_TOKEN = "wxAuth:pageRefreshToken:";

    /**
     * redis中微信分享的ticket
     */
    public static final String WX_AUTH_SHARE_TICKET = "wxAuth:shareTicket";

    /**
     * token失效时间 10天操作会重新登录
     */
    public static final long TOKEN_TIMEOUT = 90 * 24 * 60 * 60;

    /**
     * 用户信息标识
     */
    public static final String LOGIN_USER = "login-user";
    /**
     * token盐
     */
    public static final String TOKEN_SECRET_KEY = "fb983-527a95|0a01e0c-2ad2f0|c1306-13b1";

    /**
     * token预过期小时
     */
    public static final long TOKEN_REFRESH_HOUR = 240;

    /**
     * redis中短信验证码的key
     */
    public static final String REDIS_KEY_SMS_CODE = "smsCode:";

    /**
     * 每天的短信数量限制
     */
    public static final int COUNT_SMS_CODE_LIMIT = 20;

    /**
     * redis中用户信息key
     */
    public static String REDIS_KEY_USER_INFO = "user:id:";

    /**
     * redis中oss的sts信息
     */
    public static String REDIS_KEY_OSS_STS_INFO = "ossStsInfo";

    /**
     * redis中产品详情
     */
    public static String REDIS_KEY_PRODUCT_DETAIL_INFO = "productDetail:id:";

    /**
     * redis中产品基础信息
     */
    public static String REDIS_KEY_PRODUCT_BASE_INFO = "productBase:id:";

    /**
     * redis中报告链接
     */
    public static String REDIS_KEY_REPORT = "report:";

    /**
     * redis中系统配置数据
     */
    public static String REDIS_KEY_SYS_CONFIG = "sysConfig";

    /**
     * redis中产品名称
     */
    public static String REDIS_KEY_PRODUCT_NAME = "productName";

    /**
     * redis中前置的链接
     */
    public static String REDIS_KEY_FRONT_URL = "frontUrl:";

    /**
     * redis中查询进度的产品
     */
    public static String REDIS_KEY_QRY_PROCESS = "qryProcess:";

    /**
     * redis易鑫城市编码
     */
    public static String REDIS_KEY_YX_CITY_CODE = "yxCityCode:";

    /**
     * redis中产品规则
     */
    public static String REDIS_KEY_PRODUCT_RULE = "productRule";

    /**
     * redis中规则产品
     */
    public static String REDIS_KEY_RULE_PRODUCT = "ruleProduct:";

    /**
     * redis中分类产品
     */
    public static String REDIS_KEY_CATEGORY_PRODUCT = "categoryProduct:";

    /**
     * redis中产品优势
     */
    public static String REDIS_KEY_PRODUCT_ADVANTAGE = "productAdvantage:";

    /**
     * 商机列表的图片缩略图配置
     */
    public static String OSS_BUSINESS_IMG_CONFIG = "?x-oss-process=image/resize,m_fill,h_300,w_300";

    /**
     * 采集发票控件
     */
    public static String COLLECT_INVOICE = "collectInvoice";

    /**
     * banner
     */
    public static String BANNER = "banner";

    /**
     * 招募海报
     */
    public static String RECRUIT_POSTER = "recruitPoster";

    /**
     * 渠道的配置信息
     */
    public static String REDIS_KEY_CHANNEL_CONFIG = "channelConfig:";

    /**
     * redis中电核内容
     */
    public static String REDIS_KEY_TEL_CONTENT = "telContent:";

}
